﻿//===================================================================================
// Copyright (c) Ryan Garrett.  All rights reserved.
// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY
// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT
// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
// FITNESS FOR A PARTICULAR PURPOSE.
//===================================================================================

namespace Caffeine.Core.Test.TestModel
{
    public class ModelForCollectionTesting : ModelBase
    {
        private readonly ModelCollection<ModelForCollectionTesting> _children;
        private readonly ModelCollection<ModelForCollectionTesting> _children2;

        public ModelForCollectionTesting()
        {
            _children = RegisterCollectionProperty<ModelForCollectionTesting>("Children");
            _children2 = RegisterCollectionProperty<ModelForCollectionTesting>("Children2");            
        }

        public ModelCollection<ModelForCollectionTesting> Children
        {
            get
            {
                return _children;
            }
        }

        public ModelCollection<ModelForCollectionTesting> Children2
        {
            get
            {
                return _children2;
            }
        }
    }
}
